const app = getApp();
Page({
  addRecruitmentlibary:function () {
    wx.showToast({
      title: '添加发布信息',
      icon: 'success',
      duration: 2000//持续的时间,
    }),//延迟跳转
    setTimeout(function(){
        //登录失败跳转到注册页面 登录失败说明没有注册
        wx.navigateTo({
          url: '/pages/AddRecruit/AddRecruit'
        })
    },2000)
  },
  data: {
    StatusBar: app.globalData.StatusBar,
    CustomBar: app.globalData.CustomBar,
    getData:[]

  },
  isCard(e) {
    this.setData({
      isCard: e.detail.value
    })
  },
  onLoad:
  function () {
    let that=this
    wx.request({
      url: 'http://localhost:2238/api/Authentication/GetRecruitmentLibrary',
      method:'get',
      success:function (data) {
      
         that.setData(
          {
            getData:data.data.Data
          }
        )
        
      }
    })
  }
  
});
